package pwd.allen.byteBuddy.other;

/**
 * @author 门那粒沙
 * @create 2021-06-13 15:10
 **/
public class MyObj {
    public MyObj() {
        System.out.println("这是构造方法");
    }

    public int add(int a, int b) {
        return a + b;
    }

    public boolean ifVIP(String name) {
        return "pwd".equalsIgnoreCase(name) ? true : false;
    }

    public static String sayHello(String name) {
        System.out.println("invoke sayHello");
        return "hello!" + name;
    }
}
